package com.distribution.system.openapi.service;

import com.alibaba.fastjson2.JSONArray;
import com.distribution.system.domain.entity.CmccDaOrder;
import com.distribution.system.domain.req.ReqResult;
import com.distribution.system.openapi.domain.dto.ApiChoosePhoneDTO;
import com.distribution.system.openapi.domain.dto.ApiOrderSearchDTO;
import com.distribution.system.openapi.domain.dto.ApiSendCodeDTO;
import com.distribution.system.openapi.domain.dto.ApiPlaceOrderDTO;

/**
 * @author: GodLu
 * @create: 2024-04-19 11:35
 * @description: TODO
 */
public interface CardDistributionApiService {
    // 获取验证码
    ReqResult sendVerifiedCode(ApiSendCodeDTO apiSendCodeDTO);

    // 选号
    ReqResult choosePhoneNumber(ApiChoosePhoneDTO apiChoosePhoneDto);

    // 下单
    ReqResult placeOrder(ApiPlaceOrderDTO apiPlaceOrderDTO);

    // 查询订单
    JSONArray searchOrder(ApiOrderSearchDTO apiOrderSearchDTO);

    // 查询订单
    void orderCallback(CmccDaOrder cmccDaOrder);
}
